<nav class="navbar navbar-default bg-primary navbar-fixed-top">
  <div class="container">
    <div class="navbar-header">
      <a class="navbar-brand" href="#">学生成绩信息管理系统</a>
    </div>
    <ul class="nav navbar-nav navbar-right">
      {{if user}}
      <li><a href="">欢迎你，{{user.nickname}}</a></li>
      <li>
        <a href="#" class="padding-top: 0px"><img src="/public//img/logo3.png" alt="" style="max-width: 20px" /></a>
      </li>
      <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span>我的 </span><span class="caret"></span
        ></a>
        <ul class="dropdown-menu">
          <li><a href="/user">个人信息</a></li>
          <li><a href="#">设置</a></li>
          <li role="separator" class="divider"></li>
          <li><a href="/login/logout">退出</a></li>
        </ul>
      </li>
      {{else}}
      <li>
        <a href="/login" type="button" class="btn btn-default navbar-btn">去登录</a
        >
      </li>
      {{/if}}
    </ul>
  </div>
</nav>